LF_FACESIZE = 32
cchTextLimitDefault = 32767
WM_CONTEXTMENU = 0007Bh
WM_UNICHAR = 00109h
WM_PRINTCLIENT = 00318h
EM_GETLIMITTEXT = (WM_USER + 37)
EM_POSFROMCHAR = (WM_USER + 38)
EM_CHARFROMPOS = (WM_USER + 39)
EM_SCROLLCARET = (WM_USER + 49)
EM_CANPASTE = (WM_USER + 50)
EM_DISPLAYBAND = (WM_USER + 51)
EM_EXGETSEL = (WM_USER + 52)
EM_EXLIMITTEXT = (WM_USER + 53)
EM_EXLINEFROMCHAR = (WM_USER + 54)
EM_EXSETSEL = (WM_USER + 55)
EM_FINDTEXT = (WM_USER + 56)
EM_FORMATRANGE = (WM_USER + 57)
EM_GETCHARFORMAT = (WM_USER + 58)
EM_GETEVENTMASK = (WM_USER + 59)
EM_GETOLEINTERFACE = (WM_USER + 60)
EM_GETPARAFORMAT = (WM_USER + 61)
EM_GETSELTEXT = (WM_USER + 62)
EM_HIDESELECTION = (WM_USER + 63)
EM_PASTESPECIAL = (WM_USER + 64)
EM_REQUESTRESIZE = (WM_USER + 65)
EM_SELECTIONTYPE = (WM_USER + 66)
EM_SETBKGNDCOLOR = (WM_USER + 67)
EM_SETCHARFORMAT = (WM_USER + 68)
EM_SETEVENTMASK = (WM_USER + 69)
EM_SETOLECALLBACK = (WM_USER + 70)
EM_SETPARAFORMAT = (WM_USER + 71)
EM_SETTARGETDEVICE = (WM_USER + 72)
EM_STREAMIN = (WM_USER + 73)
EM_STREAMOUT = (WM_USER + 74)
EM_GETTEXTRANGE = (WM_USER + 75)
EM_FINDWORDBREAK = (WM_USER + 76)
EM_SETOPTIONS = (WM_USER + 77)
EM_GETOPTIONS = (WM_USER + 78)
EM_FINDTEXTEX = (WM_USER + 79)
EM_GETWORDBREAKPROCEX = (WM_USER + 80)
EM_SETWORDBREAKPROCEX = (WM_USER + 81)
EM_SETUNDOLIMIT = (WM_USER + 82)
EM_REDO = (WM_USER + 84)
EM_CANREDO = (WM_USER + 85)
EM_GETUNDONAME = (WM_USER + 86)
EM_GETREDONAME = (WM_USER + 87)
EM_STOPGROUPTYPING = (WM_USER + 88)
EM_SETTEXTMODE = (WM_USER + 89)
EM_GETTEXTMODE = (WM_USER + 90)
EM_AUTOURLDETECT = (WM_USER + 91)
EM_GETAUTOURLDETECT = (WM_USER + 92)
EM_SETPALETTE = (WM_USER + 93)
EM_GETTEXTEX = (WM_USER + 94)
EM_GETTEXTLENGTHEX = (WM_USER + 95)
EM_SHOWSCROLLBAR = (WM_USER + 96)
EM_SETTEXTEX = (WM_USER + 97)
EM_SETPUNCTUATION = (WM_USER + 100)
EM_GETPUNCTUATION = (WM_USER + 101)
EM_SETWORDWRAPMODE = (WM_USER + 102)
EM_GETWORDWRAPMODE = (WM_USER + 103)
EM_SETIMECOLOR = (WM_USER + 104)
EM_GETIMECOLOR = (WM_USER + 105)
EM_SETIMEOPTIONS = (WM_USER + 106)
EM_GETIMEOPTIONS = (WM_USER + 107)
EM_CONVPOSITION = (WM_USER + 108)
EM_SETLANGOPTIONS = (WM_USER + 120)
EM_GETLANGOPTIONS = (WM_USER + 121)
EM_GETIMECOMPMODE = (WM_USER + 122)
EM_FINDTEXTW = (WM_USER + 123)
EM_FINDTEXTEXW = (WM_USER + 124)
EM_RECONVERSION = (WM_USER + 125)
EM_SETIMEMODEBIAS = (WM_USER + 126)
EM_GETIMEMODEBIAS = (WM_USER + 127)
EM_SETBIDIOPTIONS = (WM_USER + 200)
EM_GETBIDIOPTIONS = (WM_USER + 201)
EM_SETTYPOGRAPHYOPTIONS = (WM_USER + 202)
EM_GETTYPOGRAPHYOPTIONS = (WM_USER + 203)
EM_SETEDITSTYLE = (WM_USER + 204)
EM_GETEDITSTYLE = (WM_USER + 205)
SES_EMULATESYSEDIT = 1
SES_BEEPONMAXTEXT = 2
SES_EXTENDBACKCOLOR = 4
SES_MAPCPS = 8
SES_EMULATE10 = 16
SES_USECRLF = 32
SES_USEAIMM = 64
SES_NOIME = 128
SES_ALLOWBEEPS = 256
SES_UPPERCASE = 512
SES_LOWERCASE = 1024
SES_NOINPUTSEQUENCECHK = 2048
SES_BIDI = 4096
SES_SCROLLONKILLFOCUS = 8192
SES_XLTCRCRLFTOCR = 16384
SES_DRAFTMODE = 32768
SES_USECTF = 00010000h
SES_HIDEGRIDLINES = 00020000h
SES_USEATFONT = 00040000h
SES_CUSTOMLOOK = 00080000h
SES_LBSCROLLNOTIFY = 00100000h
SES_CTFALLOWEMBED = 00200000h
SES_CTFALLOWSMARTTAG = 00400000h
SES_CTFALLOWPROOFING = 00800000h
IMF_AUTOKEYBOARD = 00001h
IMF_AUTOFONT = 00002h
IMF_IMECANCELCOMPLETE = 00004h
IMF_IMEALWAYSSENDNOTIFY = 00008h
IMF_AUTOFONTSIZEADJUST = 00010h
IMF_UIFONTS = 00020h
IMF_DUALFONT = 00080h
ICM_NOTOPEN = 00000h
ICM_LEVEL3 = 00001h
ICM_LEVEL2 = 00002h
ICM_LEVEL2_5 = 00003h
ICM_LEVEL2_SUI = 00004h
ICM_CTF = 00005h
TO_ADVANCEDTYPOGRAPHY = 1
TO_SIMPLELINEBREAK = 2
TO_DISABLECUSTOMTEXTOUT = 4
TO_ADVANCEDLAYOUT = 8
EM_OUTLINE = (WM_USER + 220)
EM_GETSCROLLPOS = (WM_USER + 221)
EM_SETSCROLLPOS = (WM_USER + 222)
EM_SETFONTSIZE = (WM_USER + 223)
EM_GETZOOM = (WM_USER + 224)
EM_SETZOOM = (WM_USER + 225)
EM_GETVIEWKIND = (WM_USER + 226)
EM_SETVIEWKIND = (WM_USER + 227)
EM_GETPAGE = (WM_USER + 228)
EM_SETPAGE = (WM_USER + 229)
EM_GETHYPHENATEINFO = (WM_USER + 230)
EM_SETHYPHENATEINFO = (WM_USER + 231)
EM_GETPAGEROTATE = (WM_USER + 235)
EM_SETPAGEROTATE = (WM_USER + 236)
EM_GETCTFMODEBIAS = (WM_USER + 237)
EM_SETCTFMODEBIAS = (WM_USER + 238)
EM_GETCTFOPENSTATUS = (WM_USER + 240)
EM_SETCTFOPENSTATUS = (WM_USER + 241)
EM_GETIMECOMPTEXT = (WM_USER + 242)
EM_ISIME = (WM_USER + 243)
EM_GETIMEPROPERTY = (WM_USER + 244)
EPR_0 = 0
EPR_270 = 1
EPR_180 = 2
EPR_90 = 3
CTFMODEBIAS_DEFAULT = 00000h
CTFMODEBIAS_FILENAME = 00001h
CTFMODEBIAS_NAME = 00002h
CTFMODEBIAS_READING = 00003h
CTFMODEBIAS_DATETIME = 00004h
CTFMODEBIAS_CONVERSATION = 00005h
CTFMODEBIAS_NUMERIC = 00006h
CTFMODEBIAS_HIRAGANA = 00007h
CTFMODEBIAS_KATAKANA = 00008h
CTFMODEBIAS_HANGUL = 00009h
CTFMODEBIAS_HALFWIDTHKATAKANA = 0000Ah
CTFMODEBIAS_FULLWIDTHALPHANUMERIC = 0000Bh
CTFMODEBIAS_HALFWIDTHALPHANUMERIC = 0000Ch
IMF_SMODE_PLAURALCLAUSE = 00001h
IMF_SMODE_NONE = 00002h
ICT_RESULTREADSTR = 1
EMO_EXIT = 0
EMO_ENTER = 1
EMO_PROMOTE = 2
EMO_EXPAND = 3
EMO_MOVESELECTION = 4
EMO_GETVIEWMODE = 5
EMO_EXPANDSELECTION = 0
EMO_EXPANDDOCUMENT = 1
VM_NORMAL = 4
VM_OUTLINE = 2
VM_PAGE = 9
EN_MSGFILTER = 00700h
EN_REQUESTRESIZE = 00701h
EN_SELCHANGE = 00702h
EN_DROPFILES = 00703h
EN_PROTECTED = 00704h
EN_CORRECTTEXT = 00705h
EN_STOPNOUNDO = 00706h
EN_IMECHANGE = 00707h
EN_SAVECLIPBOARD = 00708h
EN_OLEOPFAILED = 00709h
EN_OBJECTPOSITIONS = 0070ah
EN_LINK = 0070bh
EN_DRAGDROPDONE = 0070ch
EN_PARAGRAPHEXPANDED = 0070dh
EN_PAGECHANGE = 0070eh
EN_LOWFIRTF = 0070fh
EN_ALIGNLTR = 00710h
EN_ALIGNRTL = 00711h
ENM_NONE = 000000000h
ENM_CHANGE = 000000001h
ENM_UPDATE = 000000002h
ENM_SCROLL = 000000004h
ENM_SCROLLEVENTS = 000000008h
ENM_DRAGDROPDONE = 000000010h
ENM_PARAGRAPHEXPANDED = 000000020h
ENM_PAGECHANGE = 000000040h
ENM_KEYEVENTS = 000010000h
ENM_MOUSEEVENTS = 000020000h
ENM_REQUESTRESIZE = 000040000h
ENM_SELCHANGE = 000080000h
ENM_DROPFILES = 000100000h
ENM_PROTECTED = 000200000h
ENM_CORRECTTEXT = 000400000h
ENM_IMECHANGE = 000800000h
ENM_LANGCHANGE = 001000000h
ENM_OBJECTPOSITIONS = 002000000h
ENM_LINK = 004000000h
ENM_LOWFIRTF = 008000000h
ES_SAVESEL = 000008000h
ES_SUNKEN = 000004000h
ES_DISABLENOSCROLL = 000002000h
ES_SELECTIONBAR = 001000000h
ES_NOOLEDRAGDROP = 000000008h
ES_EX_NOCALLOLEINIT = 000000000h
ES_EX_NOCALLOLEINIT = 001000000h
ES_VERTICAL = 000400000h
ES_NOIME = 000080000h
ES_SELFIME = 000040000h
ECO_AUTOWORDSELECTION = 000000001h
ECO_AUTOVSCROLL = 000000040h
ECO_AUTOHSCROLL = 000000080h
ECO_NOHIDESEL = 000000100h
ECO_READONLY = 000000800h
ECO_WANTRETURN = 000001000h
ECO_SAVESEL = 000008000h
ECO_SELECTIONBAR = 001000000h
ECO_VERTICAL = 000400000h
ECOOP_SET = 00001h
ECOOP_OR = 00002h
ECOOP_AND = 00003h
ECOOP_XOR = 00004h
WB_CLASSIFY = 3
WB_MOVEWORDLEFT = 4
WB_MOVEWORDRIGHT = 5
WB_LEFTBREAK = 6
WB_RIGHTBREAK = 7
WB_MOVEWORDPREV = 4
WB_MOVEWORDNEXT = 5
WB_PREVBREAK = 6
WB_NEXTBREAK = 7
PC_FOLLOWING = 1
PC_LEADING = 2
PC_OVERFLOW = 3
PC_DELIMITER = 4
WBF_WORDWRAP = 0010h
WBF_WORDBREAK = 0020h
WBF_OVERFLOW = 0040h
WBF_LEVEL1 = 0080h
WBF_LEVEL2 = 0100h
WBF_CUSTOM = 0200h
IMF_FORCENONE = 00001h
IMF_FORCEENABLE = 00002h
IMF_FORCEDISABLE = 00004h
IMF_CLOSESTATUSWINDOW = 00008h
IMF_VERTICAL = 00020h
IMF_FORCEACTIVE = 00040h
IMF_FORCEINACTIVE = 00080h
IMF_FORCEREMEMBER = 00100h
IMF_MULTIPLEEDIT = 00400h
WBF_CLASS = 00Fh
WBF_ISWHITE = 010h
WBF_BREAKLINE = 020h
WBF_BREAKAFTER = 040h
CHARFORMATDELTA = sizeof.CHARFORMAT2 - sizeof.CHARFORMAT
CFM_BOLD = 000000001h
CFM_ITALIC = 000000002h
CFM_UNDERLINE = 000000004h
CFM_STRIKEOUT = 000000008h
CFM_PROTECTED = 000000010h
CFM_LINK = 000000020h
CFM_SIZE = 080000000h
CFM_COLOR = 040000000h
CFM_FACE = 020000000h
CFM_OFFSET = 010000000h
CFM_CHARSET = 008000000h
CFE_BOLD = 00001h
CFE_ITALIC = 00002h
CFE_UNDERLINE = 00004h
CFE_STRIKEOUT = 00008h
CFE_PROTECTED = 00010h
CFE_LINK = 00020h
CFE_AUTOCOLOR = 040000000h
CFM_SMALLCAPS = 00040h
CFM_ALLCAPS = 00080h
CFM_HIDDEN = 00100h
CFM_OUTLINE = 00200h
CFM_SHADOW = 00400h
CFM_EMBOSS = 00800h
CFM_IMPRINT = 01000h
CFM_DISABLED = 02000h
CFM_REVISED = 04000h
CFM_BACKCOLOR = 004000000h
CFM_LCID = 002000000h
CFM_UNDERLINETYPE = 000800000h
CFM_WEIGHT = 000400000h
CFM_SPACING = 000200000h
CFM_KERNING = 000100000h
CFM_STYLE = 000080000h
CFM_ANIMATION = 000040000h
CFM_REVAUTHOR = 000008000h
CFE_SUBSCRIPT = 000010000h
CFE_SUPERSCRIPT = 000020000h
CFM_SUBSCRIPT = CFE_SUBSCRIPT or CFE_SUPERSCRIPT
CFM_SUPERSCRIPT = CFM_SUBSCRIPT
CFM_EFFECTS = (CFM_BOLD or CFM_ITALIC or CFM_UNDERLINE or CFM_COLOR or CFM_STRIKEOUT or CFE_PROTECTED or CFM_LINK)
CFM_ALL = (CFM_EFFECTS or CFM_SIZE or CFM_FACE or CFM_OFFSET or CFM_CHARSET)
CFM_EFFECTS2 = (CFM_EFFECTS or CFM_DISABLED or CFM_SMALLCAPS or CFM_ALLCAPS or CFM_HIDDEN or CFM_OUTLINE or CFM_SHADOW or CFM_EMBOSS or CFM_IMPRINT or CFM_DISABLED or CFM_REVISED or CFM_SUBSCRIPT or CFM_SUPERSCRIPT or CFM_BACKCOLOR)
CFM_ALL2 = (CFM_ALL or CFM_EFFECTS2 or CFM_BACKCOLOR or CFM_LCID or CFM_UNDERLINETYPE or CFM_WEIGHT or CFM_REVAUTHOR or CFM_SPACING or CFM_KERNING or CFM_STYLE or CFM_ANIMATION)
CFE_SMALLCAPS = CFM_SMALLCAPS
CFE_ALLCAPS = CFM_ALLCAPS
CFE_HIDDEN = CFM_HIDDEN
CFE_OUTLINE = CFM_OUTLINE
CFE_SHADOW = CFM_SHADOW
CFE_EMBOSS = CFM_EMBOSS
CFE_IMPRINT = CFM_IMPRINT
CFE_DISABLED = CFM_DISABLED
CFE_REVISED = CFM_REVISED
CFE_AUTOBACKCOLOR = CFM_BACKCOLOR
CFU_CF1UNDERLINE = 0FFh
CFU_INVERT = 0FEh
CFU_UNDERLINETHICKLONGDASH = 18
CFU_UNDERLINETHICKDOTTED = 17
CFU_UNDERLINETHICKDASHDOTDOT = 16
CFU_UNDERLINETHICKDASHDOT = 15
CFU_UNDERLINETHICKDASH = 14
CFU_UNDERLINELONGDASH = 13
CFU_UNDERLINEHEAVYWAVE = 12
CFU_UNDERLINEDOUBLEWAVE = 11
CFU_UNDERLINEHAIRLINE = 10
CFU_UNDERLINETHICK = 9
CFU_UNDERLINEWAVE = 8
CFU_UNDERLINEDASHDOTDOT = 7
CFU_UNDERLINEDASHDOT = 6
CFU_UNDERLINEDASH = 5
CFU_UNDERLINEDOTTED = 4
CFU_UNDERLINEDOUBLE = 3
CFU_UNDERLINEWORD = 2
CFU_UNDERLINE = 1
CFU_UNDERLINENONE = 0
yHeightCharPtsMost = 1638
SCF_SELECTION = 00001h
SCF_WORD = 00002h
SCF_DEFAULT = 00000h
SCF_ALL = 00004h
SCF_USEUIRULES = 00008h
SCF_ASSOCIATEFONT = 00010h
SCF_NOKBUPDATE = 00020h
SCF_ASSOCIATEFONT2 = 00040h
SF_TEXT = 00001h
SF_RTF = 00002h
SF_RTFNOOBJS = 00003h
SF_TEXTIZED = 00004h
SF_UNICODE = 00010h
SF_USECODEPAGE = 00020h
SF_NCRFORNONASCII = 040h
SFF_WRITEXTRAPAR = 080h
SFF_SELECTION = 08000h
SFF_PLAINRTF = 04000h
SFF_PERSISTVIEWSCALE = 02000h
SFF_KEEPDOCINFO = 01000h
SFF_PWD = 00800h
SF_RTFVAL = 00700h
MAX_TAB_STOPS = 32
lDefaultTab = 720
MAX_TABLE_CELLS = 63
PFM_STARTINDENT = 000000001h
PFM_RIGHTINDENT = 000000002h
PFM_OFFSET = 000000004h
PFM_ALIGNMENT = 000000008h
PFM_TABSTOPS = 000000010h
PFM_NUMBERING = 000000020h
PFM_OFFSETINDENT = 080000000h
PFM_SPACEBEFORE = 000000040h
PFM_SPACEAFTER = 000000080h
PFM_LINESPACING = 000000100h
PFM_STYLE = 000000400h
PFM_BORDER = 000000800h
PFM_SHADING = 000001000h
PFM_NUMBERINGSTYLE = 000002000h
PFM_NUMBERINGTAB = 000004000h
PFM_NUMBERINGSTART = 000008000h
PFM_RTLPARA = 000010000h
PFM_KEEP = 000020000h
PFM_KEEPNEXT = 000040000h
PFM_PAGEBREAKBEFORE = 000080000h
PFM_NOLINENUMBER = 000100000h
PFM_NOWIDOWCONTROL = 000200000h
PFM_DONOTHYPHEN = 000400000h
PFM_SIDEBYSIDE = 000800000h
PFM_TABLE = 040000000h
PFM_TEXTWRAPPINGBREAK = 020000000h
PFM_TABLEROWDELIMITER = 010000000h
PFM_COLLAPSED = 001000000h
PFM_OUTLINELEVEL = 002000000h
PFM_BOX = 004000000h
PFM_RESERVED2 = 008000000h
PFM_ALL = (PFM_STARTINDENT or PFM_RIGHTINDENT or PFM_OFFSET or PFM_ALIGNMENT or PFM_TABSTOPS or PFM_NUMBERING or PFM_OFFSETINDENT or PFM_RTLPARA)
PFM_EFFECTS = (PFM_RTLPARA or PFM_KEEP or PFM_KEEPNEXT or PFM_TABLE or PFM_PAGEBREAKBEFORE or PFM_NOLINENUMBER or PFM_NOWIDOWCONTROL or PFM_DONOTHYPHEN or PFM_SIDEBYSIDE or PFM_TABLE or PFM_TABLEROWDELIMITER)
PFM_ALL2 = (PFM_ALL or PFM_EFFECTS or PFM_SPACEBEFORE or PFM_SPACEAFTER or PFM_LINESPACING or PFM_STYLE or PFM_SHADING or PFM_BORDER or PFM_NUMBERINGTAB or PFM_NUMBERINGSTART or PFM_NUMBERINGSTYLE)
PFE_RTLPARA = (PFM_RTLPARA shr 16)
PFE_KEEP = (PFM_KEEP shr 16)
PFE_KEEPNEXT = (PFM_KEEPNEXT shr 16)
PFE_PAGEBREAKBEFORE = (PFM_PAGEBREAKBEFORE shr 16)
PFE_NOLINENUMBER = (PFM_NOLINENUMBER shr 16)
PFE_NOWIDOWCONTROL = (PFM_NOWIDOWCONTROL shr 16)
PFE_DONOTHYPHEN = (PFM_DONOTHYPHEN shr 16)
PFE_SIDEBYSIDE = (PFM_SIDEBYSIDE shr 16)
PFE_TEXTWRAPPINGBREAK = (PFM_TEXTWRAPPINGBREAK shr 16)
PFE_COLLAPSED = (PFM_COLLAPSED shr 16)
PFE_BOX = (PFM_BOX shr 16)
PFE_TABLE = (PFM_TABLE shr 16)
PFE_TABLEROWDELIMITER = (PFM_TABLEROWDELIMITER shr 16)
PFN_BULLET = 1
PFN_ARABIC = 2
PFN_LCLETTER = 3
PFN_UCLETTER = 4
PFN_LCROMAN = 5
PFN_UCROMAN = 6
PFNS_PAREN = 0000h
PFNS_PARENS = 0100h
PFNS_PERIOD = 0200h
PFNS_PLAIN = 0300h
PFNS_NONUMBER = 0400h
PFNS_NEWNUMBER = 08000h
PFA_LEFT = 1
PFA_RIGHT = 2
PFA_CENTER = 3
PFA_JUSTIFY = 4
PFA_FULL_INTERWORD = 4
PFA_FULL_INTERLETTER = 5
PFA_FULL_SCALED = 6
PFA_FULL_GLYPHS = 7
PFA_SNAP_GRID = 8
WM_NOTIFY = 0004Eh
SEL_EMPTY = 00000h
SEL_TEXT = 00001h
SEL_OBJECT = 00002h
SEL_MULTICHAR = 00004h
SEL_MULTIOBJECT = 00008h
GCM_RIGHTMOUSEDROP = 08000h
OLEOP_DOVERB = 1
ST_DEFAULT = 0
ST_KEEPUNDO = 1
ST_SELECTION = 2
ST_NEWCHARS = 4
GT_DEFAULT = 0
GT_USECRLF = 1
GT_SELECTION = 2
GT_RAWTEXT = 4
GT_NOHIDDENTEXT = 8
GTL_DEFAULT = 0
GTL_USECRLF = 1
GTL_PRECISE = 2
GTL_CLOSE = 4
GTL_NUMCHARS = 8
GTL_NUMBYTES = 16
BOM_DEFPARADIR = 00001h
BOM_PLAINTEXT = 00002h
BOM_NEUTRALOVERRIDE = 00004h
BOM_CONTEXTREADING = 00008h
BOM_CONTEXTALIGNMENT = 00010h
BOE_RTLDIR = 00001h
BOE_PLAINTEXT = 00002h
BOE_NEUTRALOVERRIDE = 00004h
BOE_CONTEXTREADING = 00008h
BOE_CONTEXTALIGNMENT = 00010h
FR_MATCHDIAC = 020000000h
FR_MATCHKASHIDA = 040000000h
FR_MATCHALEFHAMZA = 080000000h
WCH_EMBEDDING = 0FFFCh
TM_PLAINTEXT = 1
TM_RICHTEXT = 2
TM_SINGLELEVELUNDO = 4
TM_MULTILEVELUNDO = 8
TM_SINGLECODEPAGE = 16
TM_MULTICODEPAGE = 32
UID_UNKNOWN = 0
UID_TYPING = 1
UID_DELETE = 2
UID_DRAGDROP = 3
UID_CUT = 4
UID_PASTE = 5
UID_AUTOCORRECT = 6
khyphNil = 0
khyphNormal = 1
khyphAddBefore = 2
khyphChangeBefore = 3
khyphDeleteBefore = 4
khyphChangeAfter = 5
khyphDelAndChange = 6

struct IMECOMPTEXT
	cb dd ?
	flags dd ?
ends

struct CHARFORMAT
	cbSize dd ?
	dwMask dd ?
	dwEffects dd ?
	yHeight dd ?
	yOffset dd ?
	crTextColor dd ?
	bCharSet db ?
	bPitchAndFamily db ?
	szFaceName CHAR LF_FACESIZE
ends


struct CHARFORMAT2
	cbSize dd ?
	dwMask dd ?
	dwEffects dd ?
	yHeight dd ?
	yOffset dd ?
	crTextColor dd ?
	bCharSet db ?
	bPitchAndFamily db ?
	szFaceName CHAR LF_FACESIZE
	wWeight dw ?
	sSpacing dw ?
	crBackColor dd ?
	lcid dd ?
	dwReserved dd ?
	sStyle dw ?
	wKerning dw ?
	bUnderlineType db ?
	bAnimation db ?
	bRevAuthor db ?
ends

struct CHARRANGE
	cpMin dd ?
	cpMax dd ?
ends

struct TEXTRANGE
	chrg CHARRANGE
	lpstrText dd ?
ends

struct EDITSTREAM
	dwCookie dd ?
	dwError dd ?
	pfnCallback dd ?
ends

struct FINDTEXT
	chrg CHARRANGE
	lpstrText dd ?
ends


struct FINDTEXTEX
	chrg CHARRANGE
	lpstrText dd ?
	chrgText CHARRANGE
ends

struct FORMATRANGE
	hdc dd ?
	hdcTarget dd ?
	rc RECT
	rcPage RECT
	chrg CHARRANGE
ends

struct PARAFORMAT
	cbSize dd ?
	dwMask dd ?
	wNumbering dw ?
	wEffects dw ?
	dxStartIndent dd ?
	dxRightIndent dd ?
	dxOffset dd ?
	wAlignment dw ?
	cTabCount dw ?
	rgxTabs rd MAX_TAB_STOPS
ends

struct PARAFORMAT2
	cbSize dd ?
	dwMask dd ?
	wNumbering dw ?
	wReserved dw ?
	dxStartIndent dd ?
	dxRightIndent dd ?
	dxOffset dd ?
	wAlignment dw ?
	cTabCount dw ?
	rgxTabs rd MAX_TAB_STOPS
	dySpaceBefore dd ?
	dySpaceAfter dd ?
	dyLineSpacing dd ?
	sStyle dw ?
	bLineSpacingRule db ?
	bOutlineLevel db ?
	wShadingWeight dw ?
	wShadingStyle dw ?
	wNumberingStart dw ?
	wNumberingStyle dw ?
	wNumberingTab dw ?
	wBorderSpace dw ?
	wBorderWidth dw ?
	wBorders dw ?
ends

struct MSGFILTER
	nmhdr NMHDR
	msg dd ?
	wParam dd ?
	lParam dd ?
ends

struct REQRESIZE
	nmhdr NMHDR
	rc RECT
ends

struct SELCHANGE
	nmhdr NMHDR
	chrg CHARRANGE
	seltyp dw ?
ends

struct ENDROPFILES
	nmhdr NMHDR
	hDrop dd ?
	cp dd ?
	fProtected dd ?
ends

struct ENPROTECTED
	nmhdr NMHDR
	msg dd ?
	wParam dd ?
	lParam dd ?
	chrg CHARRANGE
ends

struct ENSAVECLIPBOARD
	nmhdr NMHDR
	cObjectCount dd ?
	cch dd ?
ends

struct ENOLEOPFAILED
	nmhdr NMHDR
	iob dd ?
	lOper dd ?
	hr dd ?
ends

struct OBJECTPOSITIONS
	nmhdr NMHDR
	cObjectCount dd ?
	pcpPositions dd ?
ends

struct ENLINK
	nmhdr NMHDR
	msg dd ?
	wParam dd ?
	lParam dd ?
	chrg CHARRANGE
ends

struct ENLOWFIRTF
	nmhdr NMHDR
	szControl dd ?
ends

struct ENCORRECTTEXT
	nmhdr NMHDR
	chrg CHARRANGE
	seltyp dw ?
ends

struct PUNCTUATION
	iSize dd ?
	szPunctuation dd ?
ends

struct COMPCOLOR
	crText dd ?
	crBackground dd ?
	dwEffects dd ?
ends

struct REPASTESPECIAL
	dwAspect dd ?
	dwParam dd ?
ends

struct SETTEXTEX
	flags dd ?
	codepage dd ?
ends

struct GETTEXTEX
	cb dd ?
	flags dd ?
	codepage dd ?
	lpDefaultChar dd ?
	lpUsedDefChar dd ?
ends

struct GETTEXTLENGTHEX
	flags dd ?
	codepage dd ?
ends

struct BIDIOPTIONS
	cbSize dd ?
	wMask dw ?
	wEffects dw ?
ends

struct HYPHRESULT
	khyph dd ?
	ichHyph dd ?
	chHyph dw ?
ends

struct HYPHENATEINFO
	cbSize dw ?
	dxHyphenateZone dw ?
	pfnHyphenate dd ?
ends